#include "RingMapItem.h"
#include "AbstractRingMapItem.h"

RingMapItem::RingMapItem()
: AreaMapItem(MapItemType::Ring)
{

}

RingMapItem::RingMapItem(const QPointF &pos, qreal innerRadius, qreal outerRadius)
: AreaMapItem(MapItemType::Ring)
{
	setPos(pos);
	setRadius(innerRadius, outerRadius);
}

RingMapItem::~RingMapItem()
{

}

void RingMapItem::setRadius(qreal innerRadius, qreal outerRadius)
{
	dynamic_cast<AbstractRingMapItem*>(d_ptr)->setRadius(innerRadius, outerRadius);
}

int RingMapItem::pointIsInArea(const QPointF& lonlat)
{
	return 0;
}


